package com.db.sql;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

import com.db.ColumnInfoBean;

/**
 * 查询树
 * @author mike
 *
 */
public class NodeParameter {

	//单节点查询
	public static final int SINGLE_FIELD_QUERY = 1;
	
	
	/**
	 * 查询方向
	 */
	/**
	 * 不关联查询
	 */
	
	public static final int INDEPENDENT_FIELD_QUERY = 2;
	/**
	 * 关联查询,向父追溯
	 */
	public static final int DEPENDENT_UPPER_FIELD_QUERY = 3;
	
	
	/**
	 * 查询方式
	 */
	private int queryMethod;
	private String sql;
	/**
	 * 查询列
	 */
	private ColumnInfoBean[] beans = null;
	
	/**
	 * 参数列
	 */
	private ColumnInfoBean[] paramBeans = null;
	
	/**
	 * 值
	 */
	private Object [] objs;

	public String getSql() {
		return sql;
	}

	public void setSql(String sql) {
		this.sql = sql;
	}

	public ColumnInfoBean[] getBeans() {
		return beans;
	}

	public void setBeans(ColumnInfoBean[] beans) {
		this.beans = beans;
	}

	public ColumnInfoBean[] getParamBeans() {
		return paramBeans;
	}

	public void setParamBeans(ColumnInfoBean[] paramBeans) {
		this.paramBeans = paramBeans;
	}

	public Object[] getObjs() {
		return objs;
	}

	public void setObjs(Object[] objs) {
		this.objs = objs;
	}

	public int getQueryMethod() {
		return queryMethod;
	}

	public void setQueryMethod(int queryMethod) {
		this.queryMethod = queryMethod;
	}
	
	
	
	
}
